package bar;

import java.util.regex.Pattern;


public class RegTest {

	public static void main(String[] args) {
		Pattern username = Pattern.compile("^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&+=]).{8,}$");
	
		System.out.println(username.matcher("abc").matches());
		System.out.println(username.matcher("abc111").matches());
		System.out.println(username.matcher("abc111111111").matches());
		System.out.println(username.matcher("abc1111111111").matches());
		System.out.println(username.matcher("abc111.").matches());
		System.out.println(username.matcher("abcA01F ").matches());
		System.out.println(username.matcher("aA1! asfdsfsd@").matches());
	}
	
}
